<?php 
class Admin_Model_TableColumn_Point {
	
	protected $id;
    protected $position_id;
    protected $position_name;
    protected $page_id;
    protected $page_name;
    protected $point;
    protected $nguoi_cap_nhat;
    protected $ngay_cap_nhat;
    protected $ten_nguoi_cap_nhat;
    
	public function __construct(array $options = null) {
        if (is_array($options)) {
            $this->setOptions($options);
        }
    }

    public function setOptions(array $options) {
        $methods = get_class_methods($this);
        
        foreach ($options as $key => $value) {
            $method = 'set' . ucfirst($key);
            
            if (in_array($method, $methods)) {
                $this->$method($value);
            }
        }
        return $this;
    }

    public function __set($name, $value) {
        $method = 'set' . $name;
        
        if (('mapper' == $name) || !method_exists($this, $method)) {
            throw new Exception('Invalid content property');
        }
        
        $this->$method($value);
    }

    public function __get($name) {
        $method = 'get' . $name;
        
        if (('mapper' == $name) || !method_exists($this, $method)) {
            throw new Exception('Invalid content property');
        }
        
        return $this->$method();
    }

	public function getId() {
        return $this->id;
    }

    public function setId($id) {
        $this->id = $id;
    }

    public function getPosition_id() {
        return $this->position_id;
    }

    public function setPosition_id($position_id) {
        $this->position_id = $position_id;
    }
    
	public function getPosition_name() {
        return $this->position_name;
    }

    public function setPosition_name($position_name) {
        $this->position_name = $position_name;
    }

	public function getPage_id() {
        return $this->page_id;
    }

    public function setPage_id($page_id) {
        $this->page_id = $page_id;
    }
    
	public function getPage_name() {
        return $this->page_name;
    }

    public function setPage_name($page_name) {
        $this->page_name = $page_name;
    }
    
	public function getPoint() {
        return $this->point;
    }

    public function setPoint($point) {
        $this->point = $point;
    }
    
    public function getNguoi_cap_nhat() {
    	return $this->nguoi_cap_nhat;
    }
    
    public function setNguoi_cap_nhat($nguoi_cap_nhat) {
    	$this->nguoi_cap_nhat = $nguoi_cap_nhat;
    }
    
    public function getNgay_cap_nhat() {
    	return $this->ngay_cap_nhat;
    }
    
    public function setNgay_cap_nhat($ngay_cap_nhat) {
    	$this->ngay_cap_nhat = $ngay_cap_nhat;
    }
    
    public function getTen_nguoi_cap_nhat() {
    	return $this->ten_nguoi_cap_nhat;
    }
    
    public function setTen_nguoi_cap_nhat($ten_nguoi_cap_nhat) {
    	$this->ten_nguoi_cap_nhat = $ten_nguoi_cap_nhat;
    }
    
}
?>